package com.koocloud.electroplatemanage.mapper;

import com.koocloud.electroplatemanage.pojo.AnalysisItems;
import com.koocloud.electroplatemanage.pojo.OriginItems;
import com.koocloud.electroplatemanage.pojo.TypeWorkVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program:
 * @description:
 * @author: wjx
 * @create: 2020/11/17 16:34
 */
@Mapper
public interface OriginItemsMapper {
    /**
     * 通过主键查询一条数据
     * @param pk
     * @return
     */
    OriginItems selectByPk(String pk);

    /**
     * 通过镀槽编号查询化验项目
     * @param tankNo
     * @return
     */
    List<OriginItems> selectByTankNo(String tankNo);
    /**
     * 批量插入一组数据
     * @param originItemsList
     * @return
     */
    int batchInsert(@Param("tankNo") String tankNo, @Param("originItemsList") List<OriginItems> originItemsList);

    /**
     * 通过镀槽编号更新一条数据
     * @param tankNo
     * @return
     */
    int updateByTankNo(String tankNo);

    /**
     * 通过镀槽号删除数据
     * @param tankNo
     * @return
     */
    int deleteByTankNo(String tankNo);
}
